//
//  CinemaCell.m
//  结构
//
//  Created by 看着太阳吃烧饼 on 15/7/22.
//  Copyright (c) 2015年 看着太阳吃烧饼. All rights reserved.
//

#import "CinemaCell.h"

@implementation CinemaCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setModal:(cinemaModal *)modal {
    _modal = modal;
    [self setNeedsLayout];
}

- (void)layoutSubviews {
    _cinemaAddress.text = _modal.address;
    _cinemaName.text = _modal.name;
    _cinemaGrade.text = _modal.grade;
    _cinemaLowPrice.text = _modal.lowPrice;
    _cinemaSeat.image = [UIImage imageNamed:@"cinemaSeatMark@2x.png"];
    _cinemaCoupon.image = [UIImage imageNamed:@"cinemaCouponMark@2x.png"];
    if ([_modal.isSeatSupport isEqualToString:@"0"]) {
        _cinemaSeat.hidden = YES;
//        _cinemaSeat.image = [UIImage imageNamed:@"cinemaSeatMark@2x.png"];
    }
    if ([_modal.isCouponSupport isEqualToString:@"0"]) {
        _cinemaCoupon.hidden = YES;
//        _cinemaCoupon.image = [UIImage imageNamed:@"cinemaCouponMark@2x.png"];
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
